//
//  MyCollectionViewCell.m
//  MansApp
//
//  Created by lanou3g on 15/7/22.
//  Copyright (c) 2015年 ACH. All rights reserved.
//

#import "MyCollectionViewCell.h"

@implementation MyCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.myImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0,kP6width(90), kP6Height(120))];
        self.myImageView.image = [UIImage imageNamed:@"bookNote"];
        self.myLabel =[[UILabel alloc]initWithFrame:CGRectMake(kP6width(5.5),kP6Height(5.5),self.myImageView.bounds.size.width - kP6width(10), self.myImageView.bounds.size.height - kP6Height(10))];
       
        self.myLabel.textAlignment = NSTextAlignmentCenter;
        self.myLabel.numberOfLines = 0;
        
        
        self.myLabel.lineBreakMode = NSLineBreakByTruncatingMiddle;
        self.myLabel.font = [UIFont fontWithName:@"MarkerFelt-Thin" size:15];
        
        self.myLabel.textColor = [UIColor whiteColor];
        [self.contentView addSubview:self.myImageView];
        [self.contentView addSubview:self.myLabel];
        
        
    }
    
    return self;
}

@end
